﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Net;

namespace DNNSocialBookmark.Core
{
    /// <summary>
    /// 
    /// </summary>
    public class DeliciousBookmark : Bookmark 
    {
        public DeliciousBookmark()
        {
            this.BaseUri = "https://api.del.icio.us/v1/posts/add";
        }

        /// <summary>
        /// 
        /// </summary>
        public override void Post()
        {
            HttpContext.Current.Response.Redirect(string.Format("{0}?url={1}&description={2}",
                                                this.BaseUri, this.SourceUrl, this.Description));

        }
    }
}